﻿using Microsoft.Office.OneNote;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace se.Sternerson.OneNote.MHTExport
{
    public class LearnStuff
    {
        public static void LearnOneNote()
        {
            OneNoteHierarchy oneNote = OneNoteHierarchy.Current;
            OneNotePage page = oneNote.Notebooks[2].Sections[0].Pages[0];

            Microsoft.Office.Interop.OneNote.Application application = new Microsoft.Office.Interop.OneNote.Application();
            application.Publish(page.ObjectId.ToString(), "C:\\Users\\Erik\\workspace\\test\\out.htm", Microsoft.Office.Interop.OneNote.PublishFormat.pfHTML);
        }
    }
}
